package com.ljt.springelasticsearchdemo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;


@Data
@Document(indexName = "item")
public class ItemES {
    @Id
    private Long id;
    private String title;   //标题
    private String category;//分类
    private String content;
    private Date createTime;
    private Boolean isDelete;
}

